import Taro, { Component } from '@tarojs/taro'
import { View, Image, Text,Button } from '@tarojs/components'
import { AtButton } from 'taro-ui'
import './success.less'

class Success extends Component {

  config = {
    navigationBarTitleText: "客户提交成功"
  };

  render(){
    return (
      <View className="success-index">
        <View className="success-head">
          <Text className="success-title">客户提交成功</Text>
        </View>
        <View className="success-body">
          <Image style="width:255px;height:213px;" src={require('../../assets/img/add-success.png')} />
          <Text className="success-info">客户信息已成功提交，请耐心等待系统审核</Text>
          <Button className="back-to-list" type='primary' onClick={() => {
            Taro.redirectTo({
              url:"/pages/customer/index"
            })
          }}>我的客户</Button>
        </View>

       </View>
    )
  }
}
export default Success
